package com.bruce.tool.map.gaode.web.to;

import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Bruce(刘正航)
 */
@Data
@Builder
public class Point implements Serializable {
    /**
     * 纬度
     */
    private double lat;
    /**
     * 经度
     */
    private double lng;

    public String toLocation() {
        return this.lng + "," + this.lat;
    }

    public String toReverseLocation() {
        return this.lat + "," + this.lng;
    }
}
